<?php 
error_reporting(E_ALL ^ E_NOTICE);
ini_set('max_file_uploads', '50');
ini_set('max_execution_time', 3000);
ini_set("session.gc_maxlifetime","3600");

$mang=array();
$link1='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$_SESSION['backlink']=$link1;
if(isset($_SESSION['admindeal'])){
	$mang=$_SESSION['admindeal'];
}else{
	$link1='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
	$_SESSION['backlink']=$link1;
	echo '<script>
			window.location.assign("'.base_url('login').'");
			</script>';
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
	<title>Fashion Shop</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 	<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
	<link rel="stylesheet" href="<?php echo base_url('css/default.css'); ?>">
	<script src="<?php echo base_url('js/jquery-1.9.1.js') ?>"  type="text/javascript"></script>
	<script src="<?php echo base_url('js/jquery.min.js') ?>"></script>
	<script type="text/javascript" language="javascript" src="<?php echo base_url('js/script.js') ?>"></script>
	<script>
	(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

	ga('create', 'UA-54849478-1', 'auto');
	ga('send', 'pageview');
	</script>
</head>

<body>

<?php 
$link1='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$_SESSION['backlink']=$link1;?>
<div id="wrapper">

	<div id="header">
		<div class="header">
			<div style="border:0px red solid;margin-right: 100px;"><img src="<?php echo base_url('images/ad_logo.png') ?>" style="margin:15px 0px;width: 180px;">			
				<div style="float:right;margin:10px 0px;">
					<div class="divBtn" style="width: 60px;margin-bottom:10px;float:right;" onclick="var hoi=confirm('Bạn có chắc không?');if(hoi==true){location.href='<?=base_url('logout')?>'}">Đăng Xuất</div>
					<div style="margin-right:0px;margin-top:5px;color:#ff5f00;float:right;margin-right:7px; font-weight:bold;"><?=$mang[1]?></div>
				</div>
				
			</div>
			<?php $this->load->file("page/menu_top.php"); ?>
		</div>
	</div>

	<div id="container">
	<div id="contentsWrap">

		<div id="snb">
			<?php include 'page/menu_left.php';?>
		</div>
		<div id="contents">
			<?php 
			if($action=="list_account")
				$this->load->file("content/list_account.php");
			if($action=="acc_detail")
				$this->load->file("content/edit_account.php");
			?>
		</div>
	</div>
	</div>
	<div id="footer">Copyright Â© Fashion Shop Since 2014. All rights reserved.</div>
</div>
</body></html>